package com.wnxy.sddfp.bank.mq;

import com.wnxy.sddfp.common.constant.MQConstant;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

//@Component
public class MessageProducer {

    @Autowired
    private RabbitTemplate rabbitTemplate;

    public void sendMsg(Object orderDto){
        rabbitTemplate.convertAndSend(
                MQConstant.SDDF_EXCHANGE_ACCOUNT,"account.modify",orderDto);
    }
}